from django.db import models

# Create your models here.
class Yh(models.Model):
    name=models.CharField(max_length=20,verbose_name='用户')
    pwd=models.CharField(max_length=20,verbose_name='密码')
    class Meta:
        verbose_name_plural='用户表'
        db_table='yh'
    def __str__(self):
        return self.name

class Hy(models.Model):
    hyi=models.CharField(max_length=20,verbose_name='选择会员')
    price=models.CharField(max_length=200,verbose_name='价格')
    class Meta:
        verbose_name_plural='会员'
        db_table='hy'
    def __str__(self):
        return self.hyi

class Xq(models.Model):
    jg=models.CharField(max_length=20,verbose_name='总金额')
    fa=models.CharField(max_length=20,verbose_name='返现')
    yu=models.CharField(max_length=20,verbose_name='运费')
    fw=models.CharField(max_length=20,verbose_name='服务费')
    sp=models.CharField(max_length=200,verbose_name='商品优费')
    jd=models.CharField(max_length=20,verbose_name='京豆')
    class Meta:
       verbose_name_plural='详情'
       db_table='xq'
    def __str__(self):
        return self.jg